import config from '@/config/'

import container from '@/components/frame/container'

import addressList from '@/views/emergency/tongxun/addressList'
import addList from '@/views/emergency/tongxun/addList'
import updateList from '@/views/emergency/tongxun/updateList'

import dangerous from '@/views/emergency/weixian/dangerous'
import addweixian from '@/views/emergency/weixian/addweixian'
import detailsweixian from '@/views/emergency/weixian/detailsweixian'
import updateweixian from '@/views/emergency/weixian/updateweixian'

import installation from '@/views/emergency/sheshi/installation'
import addinstallation from '@/views/emergency/sheshi/addinstallation'
import detailsInstallation from '@/views/emergency/sheshi/detailsInstallation'
import updateInstallation from '@/views/emergency/sheshi/updateInstallation'


import addPlan from '@/views/emergency/yu-an/addPlan'
import plan from '@/views/emergency/yu-an/plan'
import detailsPlan from '@/views/emergency/yu-an/detailsPlan'

import material from '@/views/emergency/wuzi/material'
import addMaterial from '@/views/emergency/wuzi/addMaterial'
import updateMaterial from '@/views/emergency/wuzi/updateMaterial'
import detailsMaterial from '@/views/emergency/wuzi/detailsMaterial'

import handle from '@/views/handle/handle'
import detailsHandle from '@/views/handle/detailsHandle'

import later from '@/views/later/later'
import detailsLater from '@/views/later/detailsLater'

import analysis from '@/views/safety/analysis'
import exercise from '@/views/safety/exercise'
import trouble from '@/views/safety/trouble'
import meeting from '@/views/safety/meeting'
import training from '@/views/safety/training'
import addTrouble from '@/views/safety/addTrouble'
import shenhe from '@/views/safety/shenhe'
import YesTrouble from '@/views/safety/YesTrouble'

import duty from '@/views/scheduling/duty'
import handover from '@/views/scheduling/handover'
import station from '@/views/scheduling/station'
import index from '@/views/scheduling/index'
import check from '@/views/scheduling/check'
import revise from '@/views/scheduling/revise'
import addStation from '@/views/scheduling/addStation'
import paiban from '@/views/scheduling/paiban'




import login from '@/views/login'

const routers = [{
        path: '/',
        redirect: '/scheduling/index',
        hiddenMenu: true
    },
    {
        path: '/login',
        component: login,
        hiddenMenu: true
    },
    /*{
        path: '/gailan',
        name: '概览',
        component: container,
        redirect: '/gailan/index',
        redirect: '/cars/gps',
        children: [{
            name: '概览',
            path: 'index',
            hiddenMenu: true,
            redirect: '/cars/gps',
            component: carsIndex
        }]
    },*/
    {
        path: '/scheduling',
        name: '排班管理',
        component: container,
        iconName: 'fa fa-th',
        redirect: '/scheduling/index',
        children: [{
                name: '值班管理',
                path: '/scheduling/index',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: index
            }, {
                name: '岗位管理',
                path: '/scheduling/station',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: station
            },
            {
                name: '值班安排',
                path: '/scheduling/duty',
                hiddenMenu: false,
                iconName: 'fa fa-circle-o',
                component: duty,
            },
            // {
            //     name: '交接班管理',
            //     path: 'handover',
            //     hiddenMenu: false,
            //     iconName: 'fa fa-circle-o',
            //     component: handover
            // },
            {
                name: '岗位管理查看',
                path: '/scheduling/check',
                hiddenMenu: true,
                iconName: 'fa fa-circle-o',
                component: check
            },
            {
                name: '岗位管理修改',
                path: '/scheduling/revise',
                hiddenMenu: true,
                component: revise
            },
            {
                name: '新增岗位管理',
                path: '/scheduling/addStation',
                hiddenMenu: true,
                component: addStation
            },
            {
                name: '排班安排',
                path: '/scheduling/paiban',
                hiddenMenu: true,
                component: paiban
            }

        ]
    },
    {
        path: '/emergency',
        name: '应急准备管理',
        component: container,
        iconName: 'fa fa-laptop',
        redirect: '/emergency/addressList',
        children: [{
                name: '应急通讯录',
                path: '/emergency/addressList',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: addressList
            },
            {
                name: '应急物资管理',
                path: '/emergency/material',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: material
            },
            {
                name: '应急设施管理',
                path: '/emergency/installation',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: installation
            },
            {
                name: '危险源管理',
                path: '/emergency/dangerous',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: dangerous
            },
            {
                name: '应急预案',
                path: '/emergency/plan',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: plan
            },
            {
                name: '新增应急通讯录',
                path: '/emergency/addList',
                hiddenMenu: true,
                component: addList
            },
            {
                name: '新增应急物资',
                path: '/emergency/addMaterial',
                hiddenMenu: true,
                component: addMaterial
            },
            {
                name: '上传预案',
                path: '/emergency/addPlan',
                hiddenMenu: true,
                component: addPlan
            },
            {
                name: '修改应急通讯录',
                path: '/emergency/updateList',
                hiddenMenu: true,
                component: updateList
            },
            {
                name: '修改应急物资',
                path: '/emergency/updateMaterial',
                hiddenMenu: true,
                component: updateMaterial
            },
            {
                name: '查看应急物资',
                path: '/emergency/detailsMaterial',
                hiddenMenu: true,
                component: detailsMaterial
            },
            {
                name: '新增设施管理',
                path: '/emergency/addinstallation',
                hiddenMenu: true,
                component: addinstallation
            },
            {
                name: '修改设施管理',
                path: '/emergency/updateInstallation',
                hiddenMenu: true,
                component: updateInstallation
            },
            {
                name: '查看设施管理',
                path: '/emergency/detailsInstallation',
                hiddenMenu: true,
                component: detailsInstallation
            },
            {
                name: '新增危险源管理',
                path: '/emergency/addweixian',
                hiddenMenu: true,
                component: addweixian
            },
            {
                name: '修改危险源管理',
                path: '/emergency/updateweixian',
                hiddenMenu: true,
                component: updateweixian
            },
            {
                name: '查看危险源管理',
                path: '/emergency/detailsweixian',
                hiddenMenu: true,
                component: detailsweixian
            },
            {
                name: '查看应急预案',
                path: '/emergency/detailsPlan',
                hiddenMenu: true,
                component: detailsPlan
            }
        ]
    },

    // {
    //     path: '/handle',
    //     name: '应急处置',
    //     component: container,
    //     iconName: 'fa fa-pie-chart',
    //     redirect: '/handle/handle',
    //     children: [{
    //             name: '应急处置管理',
    //             path: '/handle/handle',
    //             iconName: 'fa fa-circle-o',
    //             hiddenMenu: false,
    //             component: handle
    //         },
    //         {
    //             name: '应急处置管理详情',
    //             path: '/handle/detailsHandle',
    //             hiddenMenu: true,
    //             component: detailsHandle
    //         }
    //     ]
    // },
    // {
    //     path: '/later',
    //     name: '应急事后',
    //     component: container,
    //     iconName: 'fa fa-edit',
    //     redirect: '/later/later',
    //     children: [{
    //             name: '应急事后管理',
    //             path: '/later/later',
    //             iconName: 'fa fa-circle-o',
    //             hiddenMenu: false,
    //             component: later
    //         },
    //         {
    //             name: '应急事后详情',
    //             path: '/later/detailsLater',
    //             hiddenMenu: true,
    //             component: detailsLater
    //         }
    //     ]
    // },
    {
        path: '/safety',
        name: '安全管理',
        component: container,
        iconName: 'fa fa-get-pocket',
        redirect: '/safety/trouble',
        children: [{
                name: '安全隐患排查',
                path: '/safety/trouble',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: trouble
            },
            {
                name: '添加隐患',
                path: '/safety/addTrouble',
                hiddenMenu: true,
                component: addTrouble
            },
            {
                name: '已审核隐患',
                path: '/safety/YesTrouble',
                hiddenMenu: true,
                component: YesTrouble
            },
            {
                name: '未审核隐患',
                path: '/safety/shenhe',
                hiddenMenu: true,
                component: shenhe
            },
            {
                name: '统计分析报表',
                path: '/safety/analysis',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: analysis
            },
            {
                name: '安全会议',
                path: '/safety/meeting',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: meeting
            },
            {
                name: '安全培训',
                path: '/safety/training',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: training
            },
            {
                name: '安全演练',
                path: '/safety/exercise',
                iconName: 'fa fa-circle-o',
                hiddenMenu: false,
                component: exercise
            }
        ]
    }
]


export default routers;